<%-- 
    Document   : cart_content
    Created on : Jan 7, 2012, 11:26:18 PM
    Author     : Turtle
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="jstl" %>
<!DOCTYPE html>
<div class="i-top">
    <span class="i-title"><a href="store.html">Apple Store</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;Cart
</div>		
<div class="i-banner">
    <div id="cart-title">Items in Your Cart</div>
</div>
<div class="viewer">
    <div id="my_table"> 
        <div id="row"><strong>Product's name</strong></div>
        <jstl:forEach var="pr" items="${proName}" varStatus="i">                        
            <div id="row">
                <a id="item_name" href="#">${pr}</a>
            </div>
        </jstl:forEach>   
        <form method="get" action="cart">
            <jstl:if test="${sessionScope.cart != null && sessionScope.cart.size() > 0}">
                <div>
                    <%
                        net.tanesha.recaptcha.ReCaptcha rc = net.tanesha.recaptcha.ReCaptchaFactory.newReCaptcha("6LcUpMgSAAAAAFiLeotrBwa7mCIckP6uJEyqWvST", "6LcUpMgSAAAAADvB3WhgJac8hmj1hVk7rvSY-72F", false);
                        out.print(rc.createRecaptchaHtml(null, null));
                    %>
                </div>
            </jstl:if>
            <a href="store?action=load"><input type="button" value="Continue shopping" class="my-button"/></a>
            <jstl:if test="${sessionScope.cart != null && sessionScope.cart.size() > 0}">                           
                <input type="submit" value="Submit" class="my-button"/>
            </jstl:if>
            <div>
                <input type="hidden" name="action" value="confirm"/>
            </div>
            <jstl:if test="${error_info != null}">
                <p class="important-string">${error_info}</p>
            </jstl:if>
        </form>
    </div>
</div>
